package com.zhengjiang.nio;

import java.nio.file.Path;
import java.nio.file.Paths;

/**
 * @author zhengjiang
 * @version 1.0.0
 * @description
 * @date 2021/6/7
 **/
public class PathTest {
    public static void main(String[] args) {
        Path path = Paths.get(".");
        System.out.println(path.getNameCount());
        System.out.println(path.getRoot());
        Path absolutePath = path.toAbsolutePath();
        System.out.println(absolutePath);
        System.out.println(absolutePath.getRoot());

    }
}
